package org.dromara.learning_xq.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.learning_xq.entity.AsTeachingMaterial;
import org.dromara.learning_xq.entity.dto.AsTeachingMaterialDto;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface AsTeachingMaterialService extends IService<AsTeachingMaterial> {

    int insertAsTeachingMaterial(AsTeachingMaterial asTeachingMaterial);

    int updateAsTeachingMaterial(AsTeachingMaterial asTeachingMaterial);

    AsTeachingMaterial findById(Long id);

    List<AsTeachingMaterialDto> selverAll(AsTeachingMaterialDto asTeachingMaterialDto);

    List<AsTeachingMaterialDto> selverFuzzyQuery(String titleName);

    AsTeachingMaterialDto selverId(Long id);

    Page<AsTeachingMaterial> selverPaginationQuery(int pageNum, int pageSize);

    boolean removeId(Long id);
}
